#ifndef PIECE_SOLDIER_HPP
#define PIECE_SOLDIER_HPP
#include <iostream>
#include "piece.hpp"
#include "gamemap.hpp"

class Piece_Soldier : public Piece {
private:
	//类内
protected:
	//基类，本类，派生类
public:
	//初始化坐标
	Piece_Soldier(PieceType ind) { pt = ind; }

	Piece_Soldier(const Coordinate &coor) : Piece(coor){
		Piece::setCoor(coor);
	}

	virtual bool movex(const int detx);

	virtual bool movey(const Coordinate coor);

	//移动
	virtual bool move(const Coordinate &coor_end)override;

	virtual void init()override;

	virtual ~Piece_Soldier();
};

#endif

